<h1>Listing documents</h1>

<table>
  <tr>
    <th>Name</th>
    <th>Content file name</th>
    <th>Content content type</th>
    <th>Content file size</th>
    <th>Content updated at</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @documents.each do |document| %>
  <tr>
    <td><%= document.name %></td>
    <td><%= document.content_file_name %></td>
    <td><%= document.content_content_type %></td>
    <td><%= document.content_file_size %></td>
    <td><%= document.content_updated_at %></td>
    <td><%= link_to 'Show', document %></td>
    <td><%= link_to 'Edit', edit_document_path(document) %></td>
    <td><%= link_to 'Destroy', document, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New Document', new_document_path %>
